/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.kallsonys.object;

import java.io.Serializable;
import java.math.BigInteger;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.validation.constraints.Size;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author allan
 */
@Entity
@Table(name = "VRANKINGCATEGORY")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "Vrankingcategory.findAll", query = "SELECT v FROM Vrankingcategory v"),
    @NamedQuery(name = "Vrankingcategory.findByIdranking", query = "SELECT v FROM Vrankingcategory v WHERE v.idranking = :idranking"),
    @NamedQuery(name = "Vrankingcategory.findByTotal", query = "SELECT v FROM Vrankingcategory v WHERE v.total = :total"),
    @NamedQuery(name = "Vrankingcategory.findByCategory", query = "SELECT v FROM Vrankingcategory v WHERE v.category = :category")})
public class Vrankingcategory implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Column(name = "IDRANKING")
    private BigInteger idranking;
    @Column(name = "TOTAL")
    private BigInteger total;
    @Size(max = 4000)
    @Column(name = "CATEGORY")
    private String category;

    public Vrankingcategory() {
    }

    public BigInteger getIdranking() {
        return idranking;
    }

    public void setIdranking(BigInteger idranking) {
        this.idranking = idranking;
    }

    public BigInteger getTotal() {
        return total;
    }

    public void setTotal(BigInteger total) {
        this.total = total;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }
    
}
